<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>修改记录</title>
    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--JQ-->
    <script type="text/javascript" charset="utf-8"
            src="${re.contextPath}/plugin/common/js/jquery-1.8.3.min.js"></script>
    <!--Layui-->
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/common/js/comment.js" charset="utf-8"></script>
    <style>
        .layui-laypage-limits>select{
            width: 100% !important;
        }
    </style>
</head>

<body>
<!--容器-->

<div class="container index clearfix">
    <!--右侧内容-->
    <div class="Right fr" style="width: 100%;">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin-top: 12px;">
            <div class="module whitebg layui-row">
                <div class="layui-col-md12 pt20">
                    <table id="modrecord" lay-filter="modrecord"></table>
                </div>

            </div>
        </div>
    </div>
</div>
<script type="text/html" id="toolBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看详情</a>
</script>

<script>
    var layer;
    var tableIns;
    $(function () {
        layui.use(['table'], function () {
            table = layui.table;
            //方法级渲染
            tableIns = table.render({
                id: 'modrecord',
                elem: '#modrecord',
                url: '/supervisor/projectManager/gerRecordList?spId='+'${spId}',
                page: true,
                parseData: function(res){
                    if(res && res.length >= 0){
                        return {
                            "code": 0,
                            "msg": "加载成功",
                            "count": res.length,
                            "data":res
                        }
                    }
                },
                cols: [[
                    {title: '序号',width: '5%',  templet: function (res) {
                        return res.LAY_INDEX;
                    }},
                    {title: '修改人', field: 'spmrModifiedByName', width: '10%', sort: false},
                    {title: '类型', field: 'spmrAction', width: '10%', sort: false},
                    {title: '修改内容', field: 'spFieldName', width: '20%', sort: false},
                    {title: '修改前', field: 'oldValue', width: '20%', sort: false},
                    {title: '修改后', field: 'newValue', width: '20%', sort: false},
                    {title: '修改时间', field: 'spmrModifiedTime', width: '15%', sort: false}
                ]],
            });
        })
    })
        </script>
    </body>
</html>